﻿<UserControl x:Class="SoftwareLogistics.SharepointClient.Silverlight.Controls.FieldControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:my="clr-namespace:SoftwareLogistics.SharepointClient.Silverlight.Controls"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
    xmlns:my2="clr-namespace:Telerik.Windows.Documents.FormatProviders.Html;assembly=Telerik.Windows.Documents.FormatProviders.Html"             
             
    mc:Ignorable="d"
    d:DesignHeight="100" d:DesignWidth="400">
    
    <Grid x:Name="LayoutRoot" Background="White" Margin="0,0,0,10">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="125" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <TextBlock x:Name="Label" Text="SAMPLE" Style="{StaticResource FormLabel}" />
        <my:EditField x:Name="EditField" Grid.Column="1" VerticalAlignment="Top" HorizontalAlignment="Left" />
        <telerik:RadRichTextBox AllowScaling="False" DocumentInheritsDefaultStyleSettings="True" Grid.Column="1" 
                                HorizontalScrollBarVisibility="Hidden" IsContextMenuEnabled="True"  Foreground="Black"
                                IsSelectionMiniToolBarEnabled="True" IsSpellCheckingEnabled="True" 
                                Name="richTextEditor" VerticalAlignment="Top" VerticalScrollBarVisibility="Hidden" >
            <telerik:RadRichTextBox.Resources>
                <my2:HtmlDataProvider x:Key="provider" RichTextBox="{Binding ElementName=richTextEditor}" />
            </telerik:RadRichTextBox.Resources>
        </telerik:RadRichTextBox>

    </Grid>
</UserControl>
